<!-- userList.jsp -->
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
  <title>用户列表</title>
</head>
<body>
<h2>用户列表</h2>
<table border="1">
  <tr>
    <th>用户名</th>
    <th>年龄</th>
    <th>邮箱</th>
  </tr>
  <c:forEach var="user" items="${users}">
    <tr>
      <td>${user.username}</td>
      <td>${user.age}</td>
      <td>${user.email}</td>
    </tr>
  </c:forEach>
</table>
<a href="/users/user-add.jsp">添加用户</a>
</body>
</html>
